/**
 * Created by zy on 2017/6/8.
 */
angular.module('service.wxjssdk', [
        "ngResource"
    ])
    .service('WxjssdkService', WxjssdkService);
WxjssdkService.$inject = ['$resource'];
function WxjssdkService($resource) {
    this.get_ticket = function(info){
        var resource = $resource(wx_jssdkurl + "jsapi/jsticket");
        return resource.save({},info)
    };
    //入口地址存入内存
    var spaUrl;
    this.setSpaUrl = function(url){
        spaUrl = url
    };
    //读取入口地址
    this.getSpaUrl = function(){
        return spaUrl;
    };
}